<extend name="Base:main" />
<block name="content">
		<div class="tpl-content-wrapper">
            <div class="tpl-content-page-title">
                系统消息
            </div>
            <ol class="am-breadcrumb">
                <li><a href="{:U('Index/index')}" class="am-icon-home">首页</a></li>
                <li class="am-active">消息列表</li>
            </ol>
            <div class="tpl-portlet-components">
                <div class="portlet-title">
                    <div class="caption font-green bold">
                        <span class="am-icon-code"></span> 消息列表
                    </div>
                    <div class="tpl-portlet-input tpl-fz-ml">
                        <div class="portlet-input input-small input-inline">
                            <div class="input-icon right">
                                <i class="am-icon-search"></i>
                                <input type="text" class="form-control form-control-solid" placeholder="搜索..."> </div>
                        </div>
                    </div>


                </div>
                <div class="tpl-block">
                    <ul class="tpl-task-list">
						<volist name="lists" id="vo">
                        <li>
                            <div class="task-checkbox">
                                <input type="hidden" value="1" name="test">
                                <input type="checkbox" class="liChild" value="2" name="test"> </div>
                            <div class="task-title">
                                <span>{$vo.id}</span> - <span id="system_message_{$vo.id}" class="task-title-sp" <eq name="vo.status" value="0">style="color:red"</eq>> {$vo.title} </span> - <span style="">{$vo.create_time}</span>
                            </div>
                            <div class="task-config">
                                <div class="am-dropdown tpl-task-list-dropdown" data-am-dropdown="">
                                    <a href="###" class="am-dropdown-toggle tpl-task-list-hover " data-am-dropdown-toggle="">
                                        <i class="am-icon-cog"></i> <span class="am-icon-caret-down"></span>
                                    </a>
                                    <ul class="am-dropdown-content tpl-task-list-dropdown-ul">
                                        <li>
                                            <a href="{$vo.url}" title="【{{ item.title }}】消息查看" data-value="{$vo.id}" id="system_message_show_click" width="600" height="400" menu="load_iframe_url"><i class="am-icon-check"></i> 查看 </a>
                                        </li>
                                        <li>
                                            <a href="{:U('Index/systemMessageDelete' , array('id' => $vo['id']))}" title="是否要删除【{$vo.title}】信息？" request_type="ajax" menu="tip_menu"><i class="am-icon-trash-o"></i> 删除 </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </li>
						</volist>
                    </ul>
                </div>
            </div>
        </div>
		<script>
			$(document).on('click' , 'a#system_message_show_click' , function(){
				$('#system_message_'+ $(this).attr('data-value')).attr('style' ,'');
			});
		</script>
</block>